﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Liber;
using Liber.WEB;

namespace FlashQ.Main.Pay
{
    public class PayController : LiberController
    {
        public JsonResult NewPay() {
            string orderId = Request.TryGet("ord_id", "");
            string provider = Request.TryGet("pay_provider", "");
            return Json(PayHelper.NewAppPay(provider, orderId.ToString(), 0.01m, "washer"));
        }
    }
}